package com.ababa.producerservice.controller;

import com.ababa.common.RestResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/producer")
public class ProducerController {

    @RequestMapping(value = "/info", method = RequestMethod.GET)
    public RestResponse<?> getInfo(){
        RestResponse<Object> restResponse = new RestResponse<Object>();
        return restResponse.success("producer service is run in 8088",System.currentTimeMillis());
    }
}
